<template>
<div>
    
</div>
</template>

<script>
import { GetOrderConfirmed } from "@/network/order/order.js";
export default {
data() {
return {

}
},
//生命周期 - 创建完成（访问当前this实例）
activated() {
  this.OrderCheck()
  console.log(this.$route)
},
methods: {
  async OrderCheck(){
    console.log(this.$route)
        let m=this.$route.query.oid.split('?')
      const{data:res}= await GetOrderConfirmed({oid:m[0]*1,ordernumber:this.$route.query.out_trade_no,appotime:m[1]})
      if(res.status==0){
          this.$router.push('logisticsInformation?type=1')
      }
      console.log(res)
  }
}
}
</script>
<style scoped>
/* @import url(); 引入css类 */

</style>